﻿using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;

namespace Pear.Core.SeedData
{
    /// <summary>
    /// 社交表种子数据 <see cref="SocialInfo"/>
    /// </summary>
    public class SocialInfoSeedData : IEntitySeedData<SocialInfo>
    {
        /// <summary>
        /// 种子数据
        /// </summary>
        /// <param name="dbContext"></param>
        /// <param name="dbContextLocator"></param>
        /// <returns></returns>
        public IEnumerable<SocialInfo> HasData(DbContext dbContext, Type dbContextLocator)
        {
            return new[]
            {
               new SocialInfo()
               {
                    Id = 1,Title = "Gitee",Href = "https://gitee.com/YxCool",Icon = "icongitee",Color = "#d81e06",UserId = 1
               },
               new SocialInfo()
               {
                    Id = 2,Title = "GitHub",Href = "https://github.com/1518648489",Icon = "icongithub",Color = "red",UserId = 1
               },
               new SocialInfo()
               {
                    Id = 3,Title = "QQ",Href = "http://wpa.qq.com/msgrd?v=3&uin=1518648489&site=qq&menu=yes",Icon = "iconqq",Color = "#1AB6FF",UserId = 1
               },
            };
        }
    }
}